<?php echo $header; ?>
<div id="content">
  <div class="breadcrumb">
    <?php echo $this->breadCrumbs(); ?>
  </div>
  <?php if (isset($error_warning)) { ?>
  <div class="warning"><?php echo $error_warning; ?></div>
  <?php } ?>
  <div class="box">    <div class="heading">
      <h1><img src="view/image/shipping.png" alt="" /> <?php echo $_['heading_title']; ?></h1>
      <div class="buttons">
	  <a onclick="$('#form').submit();" class="button"><?php echo $_['button_save']; ?></a>
	  <a href="<?php echo UA('localisation/carrier'); ?>" class="button"><?php echo $_['button_cancel']; ?></a></div>
    </div>
    <div class="content">
      <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="form">
        <table class="form">
          <tr>
            <td><span class="required">*</span> <?php echo $_['text_code']; ?></td>
            <td><input type="text" name="code" value="<?php echo $vo->get('code'); ?>" data-rule-required="true" />
				<?php echo form_error('code');?>
				</td>
          </tr>
          <tr>
            <td><span class="required">*</span> <?php echo $_['text_name']; ?></td>
            <td><input type="text" name="name" value="<?php echo $vo->get('name'); ?>" data-rule-requried="true" />
			<?php echo form_error('name');?>
				</td>
          </tr>
          <tr>
            <td><?php echo $_['text_tracking_link']; ?></td>
            <td><input type="text" name="tracking_link" value="<?php echo $vo->get('tracking_link'); ?>" size="93"/></td>
          </tr>
          <tr>
            <td><?php echo $_['text_description']; ?></td>
            <td><textarea name="description" cols="90" rows="3"><?php echo $vo->get('description'); ?></textarea></td>
          </tr>
          <tr valign="top">
            <td>
            <?php echo $_['text_shipping_label']; ?><br>
			{store_name}<br>
			{store_address}<br>
			{store_telephone}<br>
            {order_id}<br>
			{invoice_no}<br>
			{telephone}<br>	
			{firstname}<br>
			{lastname}<br>
			{company}<br>
			{address}<br>
			{city}<br>
			{zone}<br>
			{postcode}<br>
			{country}<br>
			{comment}<br>
			{full_address}
            </td>
            <td><textarea id="label_config" name="label_config" cols="90" rows="3"><?php echo $vo->get('label_config'); ?></textarea></td>
          </tr>
        </table>
      </form>
    </div>
  </div>
</div>
<script type="text/javascript" src="view/javascript/ckeditor/ckeditor.js"></script> 
<script type="text/javascript"><!--
CKEDITOR.replace('label_config', {
	filebrowserBrowseUrl: '<?php echo UA('common/filemanager'); ?>',
	filebrowserImageBrowseUrl: '<?php echo UA('common/filemanager'); ?>',
	filebrowserFlashBrowseUrl: '<?php echo UA('common/filemanager'); ?>',
	filebrowserUploadUrl: '<?php echo UA('common/filemanager/upload'); ?>',
	filebrowserImageUploadUrl: '<?php echo UA('common/filemanager/upload'); ?>',
	filebrowserFlashUploadUrl: '<?php echo UA('common/filemanager/upload'); ?>'
});
//--></script>
<?php echo $footer; ?>